package com.study.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.study.dao.InfoCustomerMapper;
import com.study.entity.InfoCustomer;
import com.study.service.InfoCustomerService;

import java.util.List;

@Service
public class InfoCustomerServiceImpl implements InfoCustomerService {

    @Resource
    private InfoCustomerMapper infoCustomerMapper;

    @Override
    public int deleteByPrimaryKey(Integer customerid) {
        return infoCustomerMapper.deleteByPrimaryKey(customerid);
    }

    @Override
    public int insert(InfoCustomer record) {
        return infoCustomerMapper.insert(record);
    }

    @Override
    public int insertSelective(InfoCustomer record) {
        return infoCustomerMapper.insertSelective(record);
    }

    @Override
    public InfoCustomer selectByPrimaryKey(Integer customerid) {
        return infoCustomerMapper.selectByPrimaryKey(customerid);
    }

    @Override
    public int updateByPrimaryKeySelective(InfoCustomer record) {
        return infoCustomerMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(InfoCustomer record) {
        return infoCustomerMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<InfoCustomer> selectAll() {
        return infoCustomerMapper.selectAll();
    }
}

